export function getGolangPlatform() {
  switch (native.process.platform) {
    case "darwin":
      return "macos";
    case "linux":
      return "linux";
    case "win32":
      return "windows";
  }

  return undefined;
}

export function getGolangArch() {
  switch (native.process.arch) {
    case "arm":
      return ["arm"];
    case "arm64":
      return ["arm", "arm64"];
    case "ia32":
      return ["x86", "386"];
    case "x64":
      return ["386", "amd64", "x86", "x86-64"];
  }
  return [];
}
